package com.joysuch.wwyt.patrol.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.util.Date;

import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author heqifeng
 * @since 2022-02-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_patrol_task")
@ApiModel(value="PatrolTask对象", description="")
public class PatrolTask extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long planId;

    @ApiModelProperty(value = "任务开始可做时间（包含提前时间）")
    private Date activeTime;

    @ApiModelProperty(value = "任务开始时间")
    private Date startTime;

    @ApiModelProperty(value = "任务结束时间")
    private Date endTime;

    @ApiModelProperty(value = "任务截止时间")
    private Date deadLine;

    @ApiModelProperty(value = "完成状态‘已完成’，‘未完成’")
    private String status;

    @ApiModelProperty(value = "实际开始巡检时间")
    private Date checkStartTime;

    @ApiModelProperty(value = "实际排查结束时间")
    private Date checkEndTime;

    @ApiModelProperty(value = "巡检用时(毫秒)")
    // 精确到毫秒
    private Long timeCost;

    @ApiModelProperty(value = "检查结果‘正常’，‘异常’")
    private String checkResult;

    @ApiModelProperty(value = "异常原因")
    private String exceptReason;

    @ApiModelProperty(value = "检查人")
    private Long checkUser;

    @ApiModelProperty(value = "异常处理状态")
    private String excepHandel;

    @ApiModelProperty(value = "逾期状态 0未逾期 1逾期")
    private Integer slippageStatus;

    @ApiModelProperty(value = "任务完成时间")
    private Date finishDate;
}
